package com.sgb.member.entity;

import com.google.gson.annotations.SerializedName;
import com.swgk.core.util.DateUtils;

import java.util.List;

public class MemberBiddingEntity {

    /**
     * "id":"1263754336567726082",
     * "name":"重新开的数据001",
     * "type":2,
     * "state":3,
     * "winningName":"巨方策划",
     * "cancelReason":"取消了",
     * "cancelTime":1590137339000,
     * "created":1590137488000,
     * "region":"北京市北京市东城区",
     * "companyName":"陕西起恒123广告有限公司",
     * "budgetPrice":312,
     * "typeName":"劳务",
     * "stateName":"已结束"
     */
    @SerializedName("id")
    private String id;
    @SerializedName("name")
    private String name;
    @SerializedName("type")
    private int type;
    @SerializedName("state")
    private int state;
    @SerializedName("winningName")
    private String winningName;
    @SerializedName("cancelReason")
    private String cancelReason;
    @SerializedName("cancelTime")
    private String cancelTime;
    @SerializedName("created")
    private String created;   //发布时间
    @SerializedName("region")
    private String region;
    @SerializedName("companyName")
    private String companyName;
    @SerializedName("budgetPrice")
    private String budgetPrice;
    @SerializedName("typeName")
    private String typeName;
    @SerializedName("stateName")
    private String stateName;
    @SerializedName("distance")
    private String distance; //距离
    @SerializedName("localLng")
    private String localLng; //经度
    @SerializedName("localLat")
    private String localLat; //纬度
    @SerializedName("showList")
    private List<MShowList> showLists;
    private String minPrice;  //最低报价
    private String maxPrice;  //最高报价
    private String[][] goodsLists; //清单内容
    private String[] goodsHeaders; //清单表头
    private String money;
    private String updated;   //定标时间
    private String deadlineTime;   //截止时间
    private String deadlineTimeStr;

    public String getDeadlineTime() {
        if (deadlineTime == null)
            return "";
        if (!"".equals(deadlineTime))
            return DateUtils.stampToDay(deadlineTime) + "";
        return deadlineTime;
    }

    public void setDeadlineTime(String deadlineTime) {
        this.deadlineTime = deadlineTime;
    }

    public String getDeadlineTimeStr() {
        if (deadlineTimeStr == null)
            return "";
        if (!"".equals(deadlineTimeStr))
            return DateUtils.stampToDay(deadlineTimeStr) + "";
        return deadlineTimeStr;
    }


    public void setDeadlineTimeStr(String deadlineTimeStr) {
        this.deadlineTimeStr = deadlineTimeStr;
    }

    // 创建时间
    private String createdStr;
    // 定标时间
    private String updatedStr;
    private int isDisplay; // 报价是否展示 0、隐藏；1、展示；
    private String address;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public int getIsDisplay() {
        return isDisplay;
    }

    public void setIsDisplay(int isDisplay) {
        this.isDisplay = isDisplay;
    }

    public String getUpdatedStr() {
        if (updatedStr == null)
            return "";
        if (!"".equals(updatedStr))
            return DateUtils.stampToDay(updatedStr) + "";
        return updatedStr;
    }

    public void setUpdatedStr(String updatedStr) {
        this.updatedStr = updatedStr;
    }

    public String getCreatedStr() {
        if (createdStr == null)
            return "";
        if (!"".equals(createdStr))
            return DateUtils.stampToDay(createdStr) + "";
        return createdStr;
    }

    public void setCreatedStr(String createdStr) {
        this.createdStr = createdStr;
    }

    public String getUpdated() {
        return updated;
    }

    public void setUpdated(String updated) {
        this.updated = updated;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public String[][] getGoodsLists() {
        return goodsLists;
    }

    public void setGoodsLists(String[][] goodsLists) {
        this.goodsLists = goodsLists;
    }

    public String[] getGoodsHeaders() {
        return goodsHeaders;
    }

    public void setGoodsHeaders(String[] goodsHeaders) {
        this.goodsHeaders = goodsHeaders;
    }

    public String getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(String minPrice) {
        this.minPrice = minPrice;
    }

    public String getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(String maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getLocalLng() {
        return localLng;
    }

    public void setLocalLng(String localLng) {
        this.localLng = localLng;
    }

    public String getLocalLat() {
        return localLat;
    }

    public void setLocalLat(String localLat) {
        this.localLat = localLat;
    }

    public String getDistance() {
        return distance;
    }

    public void setDistance(String distance) {
        this.distance = distance;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getWinningName() {
        return winningName;
    }

    public void setWinningName(String winningName) {
        this.winningName = winningName;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public String getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(String cancelTime) {
        this.cancelTime = cancelTime;
    }

    public String getCreated() {
        return created;
    }

    public void setCreated(String created) {
        this.created = created;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getBudgetPrice() {
        return budgetPrice;
    }

    public void setBudgetPrice(String budgetPrice) {
        this.budgetPrice = budgetPrice;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getStateName() {
        return stateName;
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public List<MShowList> getShowLists() {
        return showLists;
    }

    public void setShowLists(List<MShowList> showLists) {
        this.showLists = showLists;
    }
}
